<?php

$url = $params["url"]["url"];
if (strpos($url, '/') !== 0) {
    $url = '/'.$url;
}
?><div class="show_items"><?php
    if (! isset($hot_links) || !is_array($hot_links)) {
        $hot_links = array(5, 10, 20, 50, 100);
    }
    $new_links = array();
    foreach ($hot_links as $link) {
        if ($link >= $paging->count) {
            break;
        }
        $new_links[] = $link;
    }
    $hot_links = $new_links;

    if (count($hot_links)) {
    ?><div class="hot_links"><?php
    ?><table cellpadding="0" class="sys_clear"><?php
    ?><tr class="sys_clear"><?php
        ?><td class="cell sys_clear"><?php
            ?><span class="caption nw"><?php
                ?><?=__('pager_show', true);?><?php
                ?>:&nbsp;<?php
            ?></span><?php
        ?></td><?php
        foreach ($hot_links as $link) {
            ?><?=$paging->drawShowLink($html, $url, $link);
        }
        ?><?=$paging->drawShowLink($html, $url, Pagination::showAll);?><?php
    ?></tr><?php
    ?></table><?php
    ?></div><?php
    }
?></div><?php

?>